<%@page import="java.util.UUID"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/pages/common/taglib.jsp"%>
<%
	String uuid = UUID.randomUUID().toString();
	request.setAttribute("uuid", uuid);
%>
<form id="search_${uuid}" style="display: none;" class="box-body form-float">
</form>
<div class="row">
<div class="col-md-12" id="gridBox_${uuid}">
	<div class="box box-primary">
		<div class="box-header with-border">
			<h3 class="box-title"></h3>
			<div class="box-tools pull-right" id="toolBar_${uuid}">
				
			</div>
		</div>
		<div class="box-body">
			<div id="tree_${uuid}" class="ztree">
		    </div>
		</div>
	</div>
</div>

<div id="script_${uuid}" style="display: none;"></div>
</div>

<script type="text/javascript">
$(function(){
	var code='${param.code}';
	var modelCode='${param.modelCode}';
	var uuid = '${uuid}';
	var winId='${param.winId}';
	
	requirejs(['wiseMen/dataModel/QueryDefTreeTpl'],function(QueryDefTpl){
		var queryDefTpl=new QueryDefTpl({
			code:code,
			modelCode:modelCode,
			searchBarType:'dialog',
			scriptDiv:"#script_"+uuid,//引用脚本的div
			searchDiv:"#search_"+uuid,//查询定义栏
			toolBarDiv:"#toolBar_"+uuid,//工具栏定义栏
			treeDiv:"#tree_"+uuid//grid表格
		});
	});
});
</script>